package com.secsbrain.development.biz.impl;

import org.springframework.context.event.ContextRefreshedEvent;

//@Component
public class ApplicationStartup {

    //@EventListener(classes = ContextRefreshedEvent.class)
    public void onApplicationEvent(ContextRefreshedEvent event) {
        BranchServiceImpl branchServiceImpl = event.getApplicationContext().getBean(BranchServiceImpl.class);
        branchServiceImpl.loadData();

        ProjectServiceImpl projectServiceImpl = event.getApplicationContext().getBean(ProjectServiceImpl.class);
        projectServiceImpl.loadData();
    }
}
